package com.demo.designmode.decorator;

/**
 * @Author: jxm
 * @Description: 炒饭
 * @Date: 2023-12-13 14:00
 * @Version: 1.0
 */
public class FriedRice extends FastFood{

    public FriedRice() {
        super(10, "炒饭");
    }

    @Override
    public float cost() {
        return getPrice();
    }
}
